package com.collect.tanzania.zhiGlobal.zhiAppSettings;

import android.content.Intent;

import com.alibaba.android.arouter.launcher.ARouter;

public class ZHIProjectRouter {

    // 订单审核
    public static final String ZHI_ROOT_ORDER_REVIEW = "/public/root/order/review";

    //催收组员
    public static final String ZHI_AUDITER_FOLLOW = "/public/auditer/follow";
    public static final String ZHI_ROOT_AUDITER = "/public/root/auditer";
    public static final String ZHI_AUDITER_PERFERMANCE_DETAIL = "/public/auditer/perfermance/detail";

    public static final String ZHI_Public_Webview = "/public/webview";

    public static final String ZHI_Public_Splash = "/public/v2/splash";
    public static final String ZHI_LOGIN = "/login/v2/login";
    public static final String ZHI_FACE = "/login/v2/face";
    public static final String ZHI_Perfermance = "/public/v2/perfermance";
    public static final String ZHI_Perfermance_Detail = "/public/v2/perfermance/detail";
    public static final String ZHI_Detail = "/public/v2/detail";
    public static final String ZHI_Script_Library = "/public/v2/scriptlibrary";
    public static final String ZHI_ROOT_CUSTOMER = "/public/v2/customerservice";
    public static final String ZHI_ROOT_CUSTOMER_ADMIN = "/public/v2/customerservice/admin";
    public static final String ZHI_RECALL = "/public/v2/recall";
    public static final String ZHI_WHATSAPP = "/public/v2/whatsapp";

    //催收组长
    public static final String ZHI_ROOT_GROUP = "/public/root/group";
    public static final String ZHI_ROOT_GROUP_B1 = "/public/root/group/b1";
    public static final String ZHI_ROOT_GROUP_B1_PERFORMANCE_HISTORY = "/public/root/group/b1/performance/history";

    public static final String ZHI_ROOT_GROUP_B2 = "/public/root/group/b2";
    public static final String ZHI_ROOT_GROUP_B2_PERFORMANCE_HISTORY = "/public/root/group/b2/performance/history";

    public static final String ZHI_ROOT_GROUP_B3 = "/public/root/group/b3";
    public static final String ZHI_ROOT_GROUP_B3_PERFORMANCE_AMOUNT = "/public/root/group/b3/performance/amount";
    public static final String ZHI_ROOT_GROUP_B3_PERFORMANCE_ORDER = "/public/root/group/b3/performance/order";

    public static final String ZHI_ROOT_GROUP_PERFORMANCE_DETAIL = "/public/root/group/performance/detail";

    //催收组员
    public static final String ZHI_ROOT_MEMBER = "/public/root/member";
    public static final String ZHI_ROOT_MEMBER_B1 = "/public/root/member/b1";
    public static final String ZHI_ROOT_MEMBER_B2 = "/public/root/member/b2";
    public static final String ZHI_ROOT_MEMBER_B3 = "/public/root/member/b3";
    public static final String ZHI_PERFORMANCE_MEMBER_OLD = "/performance/member/old";

    public static final String ZHI_PERFORMANCE_COLLECTION_BONUS_RULES = "/performance/collection/bonus/rules";
    public static final String ZHI_PERFORMANCE_GROUP_ORDER = "/performance/group/order";
    public static final String ZHI_PERFORMANCE_CUSTOMER_HISTORY = "/performance/customer/history";
    public static final String ZHI_PERFORMANCE_CUSTOMER_HISTORY_ADMIN = "/performance/customer/history/admin";
    public static final String ZHI_PERFORMANCE_CUSTOMER_BONUS_RULES = "/performance/customer/bonus/rules";
    public static final String ZHI_PERFORMANCE_CUSTOMER_BONUS_RULES_ADMIN = "/performance/customer/bonus/rules/admin";
    public static final String ZHI_PERFORMANCE_CUSTOMER_OLD = "/performance/customer/old";
    public static final String ZHI_PERFORMANCE_CUSTOMER_OLD_ADMIN = "/performance/customer/old/admin";

    public static final String ZHI_PERFORMANCE_CUSTOMER_GROUP_DETAIL = "/performance/customer/group/detail";

    public static final String ZHI_ROOT_BIG_GROUP = "/public/root/group/big";

    public static final String ZHI_PERFORMANCE_GROUP_ORDER_HISTORY = "/performance/group/order/history";
    public static final String ZHI_PERFORMANCE_GROUP_AMOUNT_HISTORY = "/performance/group/amount/history";
    public static final String ZHI_PERFORMANCE_GROUP_REAL_TIME = "/performance/customer/realtime";

    public static final String ZHI_PERFORMANCE_TELEMARKETING_HISTORY = "/performance/telemarketing/history";

    public static final String ZHI_ADMIN = "/public/admin";
    public static final String ZHI_WORDS = "/public/words";

    public static final String ZHI_APP_UPDATE = "/public/app/update";

    public static final String ZHI_ROOT_TELEMARKETING = "/public/root/telemarketing";

    public static final String ZHI_ROOT_PHONE_REVIEW = "/public/root/phonereview";

    public static final String ZHI_ROOT_DS = "/public/root/ds";
    public static final String ZHI_DS_FOLLOW_HISTORY = "/ds/follow/history";

    public static final String ZHI_LOGIN_FORGOT_PASSWORD = "/login/forgot/password";

    public static final String ZHI_CHECK_IN = "/check/in";
    public static final String ZHI_CHECK_IN_HISTORY = "/check/in/history";
    public static final String ZHI_CHECK_IN_WIFI = "/check/in/wifi";

    public static void toRootOrderReview() {
        ARouter.getInstance().build(ZHI_ROOT_ORDER_REVIEW)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toRootAuditer() {
        ARouter.getInstance().build(ZHI_ROOT_AUDITER)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toAuditerPerfermance() {
        ARouter.getInstance().build(ZHI_AUDITER_PERFERMANCE_DETAIL)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toDsFollowHistory() {
        ARouter.getInstance().build(ZHI_DS_FOLLOW_HISTORY)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toPerformanceCustomerDetail() {
        ARouter.getInstance().build(ZHI_PERFORMANCE_CUSTOMER_GROUP_DETAIL)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toPerformanceGroupDetail() {
        ARouter.getInstance().build(ZHI_ROOT_GROUP_PERFORMANCE_DETAIL)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toCheckIn() {
        ARouter.getInstance().build(ZHI_CHECK_IN_WIFI)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toCheckInForLogin() {
        ARouter.getInstance().build(ZHI_CHECK_IN_WIFI)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toCheckInHistory() {
        ARouter.getInstance().build(ZHI_CHECK_IN_HISTORY)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toCheckInHistoryForLogin() {
        ARouter.getInstance().build(ZHI_CHECK_IN_HISTORY)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toPerformanceCollectMemberOld(){
        ARouter.getInstance().build(ZHI_PERFORMANCE_MEMBER_OLD)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toPerformanceGroupAmountOld(){
        ARouter.getInstance().build(ZHI_ROOT_GROUP_B3_PERFORMANCE_AMOUNT)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toPerformanceGroupOrderOld(){
        ARouter.getInstance().build(ZHI_ROOT_GROUP_B3_PERFORMANCE_ORDER)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toPerformanceCustomerMemberOld(){
        ARouter.getInstance().build(ZHI_PERFORMANCE_CUSTOMER_OLD)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toPerformanceAdminOld(){
        ARouter.getInstance().build(ZHI_PERFORMANCE_CUSTOMER_OLD_ADMIN)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toForgotPassword(){
        ARouter.getInstance().build(ZHI_LOGIN_FORGOT_PASSWORD)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toRootPhoneReview() {
        ARouter.getInstance().build(ZHI_ROOT_PHONE_REVIEW)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toRootDs() {
        ARouter.getInstance().build(ZHI_ROOT_DS)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toPerformanceTelemarketingHistory() {
        ARouter.getInstance().build(ZHI_PERFORMANCE_TELEMARKETING_HISTORY)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toPerformanceGroupOrderHistory() {
        ARouter.getInstance().build(ZHI_PERFORMANCE_GROUP_ORDER_HISTORY)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toPerformanceGroupAmountHistory() {
        ARouter.getInstance().build(ZHI_PERFORMANCE_GROUP_AMOUNT_HISTORY)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toPerformanceGroupRealTime() {
        ARouter.getInstance().build(ZHI_PERFORMANCE_GROUP_REAL_TIME)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toRootTelemarketing() {
        ARouter.getInstance().build(ZHI_ROOT_TELEMARKETING)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toWordsSkills() {
        ARouter.getInstance().build(ZHI_WORDS)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toAppUpdate() {
        ARouter.getInstance().build(ZHI_APP_UPDATE)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toRootBigGroup() {
        ARouter.getInstance().build(ZHI_ROOT_BIG_GROUP)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toRootGroup() {
        ARouter.getInstance().build(ZHI_ROOT_GROUP)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toRootGroupB1() {
        ARouter.getInstance().build(ZHI_ROOT_GROUP_B1)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toRootGroupB1PerformanceHistory() {
        ARouter.getInstance().build(ZHI_ROOT_GROUP_B1_PERFORMANCE_HISTORY)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toRootGroupB2() {
        ARouter.getInstance().build(ZHI_ROOT_GROUP_B2)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toRootGroupB2PerformanceHistory() {
        ARouter.getInstance().build(ZHI_ROOT_GROUP_B2_PERFORMANCE_HISTORY)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toRootGroupB3() {
        ARouter.getInstance().build(ZHI_ROOT_GROUP_B3)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toRootMember() {
        ARouter.getInstance().build(ZHI_ROOT_MEMBER)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toRootMemberB1() {
        ARouter.getInstance().build(ZHI_ROOT_MEMBER_B1)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toRootMemberB2() {
        ARouter.getInstance().build(ZHI_ROOT_MEMBER_B2)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toRootMemberB3() {
        ARouter.getInstance().build(ZHI_ROOT_MEMBER_B3)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toPerformanceCustomerHistoryAdmin() {
        ARouter.getInstance().build(ZHI_PERFORMANCE_CUSTOMER_HISTORY_ADMIN)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toPerformanceCustomerHistory() {
        ARouter.getInstance().build(ZHI_PERFORMANCE_CUSTOMER_HISTORY)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toPerformanceOrder() {
        ARouter.getInstance().build(ZHI_PERFORMANCE_GROUP_ORDER)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toAdmin() {
        ARouter.getInstance().build(ZHI_ADMIN)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toPerformanceCustomerBonusRulesAdmin() {
        ARouter.getInstance().build(ZHI_PERFORMANCE_CUSTOMER_BONUS_RULES_ADMIN)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toPerformanceCustomerBonusRules() {
        ARouter.getInstance().build(ZHI_PERFORMANCE_CUSTOMER_BONUS_RULES)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toPerformanceColloectionBonusRules() {
        ARouter.getInstance().build(ZHI_PERFORMANCE_COLLECTION_BONUS_RULES)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toPerformanceOri() {
        ARouter.getInstance().build(ZHI_Perfermance)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    //////////////// v2 ////////////////
    public static void toWhatsappV2() {
        ARouter.getInstance().build(ZHI_WHATSAPP)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toRecallV2() {
        ARouter.getInstance().build(ZHI_RECALL)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toCustomerServiceAdmin() {
        ARouter.getInstance().build(ZHI_ROOT_CUSTOMER_ADMIN)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toCustomerServiceV2() {
        ARouter.getInstance().build(ZHI_ROOT_CUSTOMER)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toRegLoginV2() {
        ARouter.getInstance().build(ZHI_LOGIN)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toRegFaceV2() {
        ARouter.getInstance().build(ZHI_FACE)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toPerfermanceDetailV2() {
        ARouter.getInstance().build(ZHI_Perfermance_Detail)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toDetailV2(String userId, String orderId, String appId) {
        ARouter.getInstance().build(ZHI_Detail)
                .withString("none", "none")
                .withString("userId", userId)
                .withString("orderId", orderId)
                .withString("appId", appId)
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

    public static void toScriptLibraryV2() {
        ARouter.getInstance().build(ZHI_Script_Library)
                .withString("none", "none")
                .withFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP)
                .navigation();
    }

}
